#pragma once
#pragma once
#include"bucket.h"
namespace my_unordered_set
{
	template<class k>
	class unordered_set
	{
		struct setkeyoft
		{
			const k& operator()(const k& key)
			{
				return key;
			}
		};
	public:
		typedef typename Hashtable<k, k, setkeyoft>::Iterator Iterator;
		Iterator begin()
		{
			return _ht.begin();
		}

		Iterator end()
		{
			return _ht.end();
		}

		void insert(const k& key)
		{
			_ht.insert(key);
		}
	private:
		Hashtable<k, k, setkeyoft> _ht;
	};
}